package com.xuyanze.core;

import com.xuyanze.core.factory.ApiDocProcessor;
import org.springframework.beans.BeansException;

import java.util.Map;

/**
 * @author ：lzy
 * @date ：2021-10-25
 * @description：
 */
public class DefaultApiDocProcessor implements ApiDocProcessor {

    @Override
    public void postProcessBefore(Map<String, String> paramsMap) throws BeansException {
    }

    @Override
    public void postProcessAfter(boolean success, String interfaceName, String serverUrl, String apiDocUrl) throws BeansException {
        String format = String.format("|x.|%s|[传送门](%s)|xx|",interfaceName,apiDocUrl);
        System.out.println(format);
    }

}
